//
//  VideoHistoryViewModel.swift
//  NDAi
//
//  Created by 丸子 on 2024/7/1.
//

import UIKit

class VideoHistoryViewModel {
    var videoArr:[VideoHistoryModel] = []
    let reloadDataSubject = PublishSubject<Void>()

    func getVideoList(){
        NDProgressHUD.showLoading()
        RequestService.instance.videoHistory { models in
            NDProgressHUD.hide()
            self.videoArr = models
            self.reloadDataSubject.onNext(())
        } failureClosure: { error in
            NDProgressHUD.hide()
        }
    }
}
